/**
 * 
 */
package com.ssm.exception;

import org.apache.log4j.Logger;

/**
 * 
 * @author 危文涛<245108903@qq.com>
 * @version 2016年2月25日 下午1:27:15
 *
 */
public class BaseException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	protected Throwable what;
	protected String message;
	protected Integer timeSeconds=null;
	protected String redirect=null;
	public BaseException(String msg,Throwable cause)
	{
		super(msg,cause);
		this.message=msg;
		this.what=cause;
		
	}
	public BaseException(String msg)
	{
		super(msg);
		this.message=msg;
	}
	public Integer getTimeSeconds() {
		return timeSeconds;
	}
	
	public String getRedirect() {
		return redirect;
	}
	
	public void setSecondsAndRedirect(Integer timeSeconds,String redirectURL)
	{
		this.timeSeconds=timeSeconds;
		this.redirect=redirectURL;
	}
	
}
